package com.romotc.qqrobot.webqq.qqInterfaceLog;

import com.romotc.qqrobot.bean.QQInfoFromQQLogedin;
import com.romotc.qqrobot.bean.QQLogedin;
import com.romotc.qqrobot.config.bean.QQUrlWatcherConfig;
import com.romotc.scache.RequestSpy;

/**
 * 记录 "http://s.web2.qq.com/api/get_friend_info2 请求日志
 * {"retcode":0,"result":{"face":540,"birthday":{"month":3,"year":2011,"day":17},"occupation":"","phone":"","allow":0,"college":"","reg_time":0,"uin":1586030808,"constel":2,"blood":0,"homepage":"","stat":20,"vip_info":0,"country":"中国","city":"济南","personal":"","nick":"opendev","shengxiao":4,"email":"","province":"山东","gender":"male","mobile":""}}
 * @author Administrator
 *
 */
public class Get_friend_info2_Log implements QQUrlLogInterface {

	@Override
	public boolean checkSkipLog(RequestSpy rqSpy, QQUrlWatcherConfig config) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean logRequestSpy(RequestSpy rqSpy, QQUrlWatcherConfig config) {
		//构造此Qq所能获取到的 某QQ号码的信息
		QQInfoFromQQLogedin qqInfo = QQInfoFromQQLogedin.buildQQInfo(rqSpy);
		
		//如果是获取的自己的信息 RomUnDo
		QQLogedin curQq = QQLogedin.getCurQqLogedIn(rqSpy);
		if(qqInfo != null && curQq != null) {
			if(curQq.getUin().equals(qqInfo.getTuin())) {
				
//				curQq.setFace(qqInfo.ge)
				//set Db: qq_logedins face
			}
		}
		return true;
	}

}
